<ion-view view-title="进度报告" devin-hide-tabs="true">
  <ion-nav-buttons side="right">
    <span ng-click="saveProgressReport()">
      <span class="nav-right-button" >保存</span>
    </span>
  </ion-nav-buttons>
  <ion-content class="my-bg">
    <ion-list>
      <!--<ion-item class="item-module-padding">-->
        <!--&lt;!&ndash; 项目编号 &ndash;&gt;-->
        <!--<ion-item class="positive item-con item-module-content-first">-->
          <!--<span style="font-size: 20px;">项目编号：{{project.projectNumber}}</span>-->
        <!--</ion-item>-->
        <!--&lt;!&ndash; 客户名称 &ndash;&gt;-->
        <!--<ion-item class="item-con item-content-notFirst" style="padding-right: 15px">-->
          <!--<img src="img/customer.png" class="img-icon"/>-->
          <!--<span>客户名称</span>-->
          <!--<p class="float-right">{{project.customerName}}</p>-->
        <!--</ion-item>-->
        <!--&lt;!&ndash; 客户联系人 &ndash;&gt;-->
        <!--<ion-item class="item-con item-content-notFirst" style="padding-right: 15px">-->
          <!--<img src="img/contact.png" class="img-icon"/>-->
          <!--客户联系人-->
          <!--<p class="float-right">{{project.contacts}}&nbsp;{{project.contactsTel}}</p>-->
        <!--</ion-item>-->
        <!--&lt;!&ndash; 所属地区 &ndash;&gt;-->
        <!--<ion-item class="item-con item-content-notFirst" style="padding-right: 15px">-->
          <!--<img src="img/build-icon.png" class="img-icon" style="width: 28px;height: 28px;"/>-->
          <!--所属地区-->
          <!--<p class="float-right">{{project.regionDesc}}</p>-->
        <!--</ion-item>-->
        <!--&lt;!&ndash; 详细地址 &ndash;&gt;-->
        <!--<ion-item class="item-con item-content-notFirst" style="border-bottom: 0px;padding-right: 15px">-->
          <!--<img src="img/build-icon.png" class="img-icon" style="width:28px;height: 28px;"/>-->
          <!--详细地址-->
          <!--<p class="float-right" style="width: 180px;text-align: right;">{{project.address}}</p>-->
        <!--</ion-item>-->
      <!--</ion-item>-->

      <!--<br/>-->

      <ion-item class="item-module-padding">
        <span ng-repeat="progressReport in progressReportList.progressList">
          <ion-item class="positive item-con item-content-notFirst">
            {{progressReport.progress}}
            <button ng-if="'true'" ng-class=" progressReport.cpltResult == 'Y' ? 'finish-button-yellow' : 'finish-button-silver'"
                    class="finish-button" ng-click="changeReportStatus(progressReport)">完成
            </button>
          </ion-item>

          <span ng-if="$index == 1">
            <!-- 挂钩（或基础）安装完成 -->
           <ion-item class="item-icon-right item-con item-content-notFirst" style="line-height: 24px;">
             <p class="item-content-p">
               挂钩（或基础）安装<br />
               （与屋面的连接处）
             </p>
             <span class="p-span-upload silver float-right" ng-class="GGLJC_JD == 'HAS_IMAGE' ? 'lookImages' : 'uploadImages'" ng-click="choiceImage('GGLJC_JD')">{{GGLJC_JD == 'HAS_IMAGE' ? '查看图片' : '上传图片'}}</span>
             <i class="icon ion-ios-arrow-right gray"></i>
           </ion-item>
            <!-- 防水处理 -->
           <ion-item class="item-icon-right item-con item-content-notFirst">
             <p class="item-content-p">防水处理</p>
             <span class="silver span-upload float-right" ng-click="choiceImage('FSCL_JD')">{{FSCL_JD == 'HAS_IMAGE' ? '查看图片' : '上传图片'}}</span>
             <i class="icon ion-ios-arrow-right gray"></i>
           </ion-item>
          </span>
          <span ng-if="$index == 2">
            <!-- 导轨安装 -->
            <ion-item class="item-icon-right item-con item-content-notFirst">
              <p class="item-content-p">导轨安装</p>
              <span class="silver span-upload float-right" ng-click="choiceImage('DGAZ_JD')">{{DGAZ_JD == 'HAS_IMAGE' ? '查看图片' : '上传图片'}}</span>
              <i class="icon ion-ios-arrow-right gray"></i>
            </ion-item>
          </span>
          <span ng-if="$index == 3">
            <!-- 组件安装 -->
            <ion-item class="item-icon-right item-con item-content-notFirst">
              <p class="item-content-p">组件安装</p>
              <span class="silver span-upload float-right" ng-click="choiceImage('ZJAZ_JD')">{{ZJAZ_JD == 'HAS_IMAGE' ? '查看图片' : '上传图片'}}</span>
              <i class="icon ion-ios-arrow-right gray"></i>
            </ion-item>
          </span>
          <span ng-if="$index == 4">
            <!-- 逆变器安装 -->
            <ion-item class="item-icon-right item-con item-content-notFirst">
              <p class="item-content-p">逆变器安装</p>
              <span class="silver span-upload float-right" ng-click="choiceImage('NBQAZ_JD')">{{NBQAZ_JD == 'HAS_IMAGE' ? '查看图片' : '上传图片'}}</span>
              <i class="icon ion-ios-arrow-right gray"></i>
            </ion-item>
          </span>
          <span ng-if="$index == 5">
           <ion-item class="item-icon-right item-con item-content-notFirst">
             <p class="item-content-p">配电箱安装</p>
             <span class="silver span-upload float-right" ng-click="choiceImage('PDXAZ_JD')">{{PDXAZ_JD == 'HAS_IMAGE' ? '查看图片' : '上传图片'}}</span>
             <i class="icon ion-ios-arrow-right gray"></i>
           </ion-item>
          </span>
        </span>
        <!-- 完工 -->
        <ion-item ng-if="progressReportList.progressList && progressReportList.progressList.length > 0" class="positive item-con item-content-notFirst" style="border-bottom: 0px;text-align: center; ">
          <button ng-click="submitProgressReport();" class="button spms-blue-bg" style="color: white; text-align: center;width:150px; min-height:40px;line-height: 40px; vertical-align: middle" >安装完成</button>
        </ion-item>
      </ion-item>
    </ion-list>

    <div class="page-bottom"></div>
  </ion-content>
</ion-view>
